<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateRegistryOwnersTable extends Migration
{
    /**
     * Run the migrations.
     */
    public function up()
    {
        Schema::create('registry_owners', function (Blueprint $table) {
            $table->id();
            $table->timestamps();
            $table->bigInteger('registry_id')->index()->comment('注册ID');
            $table->bigInteger('registry_auth_id')->index()->comment('个人或企业ID');
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down()
    {
        Schema::dropIfExists('registry_owners');
    }
}
